#!/user/bin/env python
# -*- coding: utf-8 -*-
# @Software: PyCharm
# @Time : 2022/1/19 17:23
# @Author : ziqi.zhang
# @Version : 
# @Description :

import time
import logging


class Logging:
    """日志输出类"""

    def __init__(self):
        """输出日志方法"""
        now_time = time.strftime("%Y%m%d")  # 获取当前日期
        logging.basicConfig(filename='../Log/AutoTest_' + now_time + '.log',
                            format='%(asctime)s - %(name)s - %(process)d - %(thread)d - %(threadName)s - %(filename)s['
                                   'line:%(lineno)d] - [%(levelname)s] - %(message)s',
                            datefmt='%Y-%m-%d %H:%M:%S',
                            level=logging.INFO)  # 初始化日志
